package com.fun_ordering.mapper;

import com.fun_ordering.pojo.MaterialStock;
import com.fun_ordering.pojo.MaterialStockExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
@Mapper
public interface MaterialStockMapper {
    int countByExample(MaterialStockExample example);

    int deleteByExample(MaterialStockExample example);

    int deleteByPrimaryKey(Integer stockId);

    int insert(MaterialStock record);

    int insertSelective(MaterialStock record);

    List<MaterialStock> selectByExample(MaterialStockExample example);

    MaterialStock selectByPrimaryKey(Integer stockId);

    int updateByExampleSelective(@Param("record") MaterialStock record, @Param("example") MaterialStockExample example);

    int updateByExample(@Param("record") MaterialStock record, @Param("example") MaterialStockExample example);

    int updateByPrimaryKeySelective(MaterialStock record);

    int updateByPrimaryKey(MaterialStock record);

    int updateStockNumberByStockId(@Param("stockId") Integer stockId ,@Param("stockNumber")  BigDecimal stockNumber);

}